﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.IO;

namespace Viewer.Base
{
    public class CustomReportViewer : Microsoft.Reporting.WebForms.ReportViewer
    {
        protected override void Render(HtmlTextWriter writer)
        {
            using (StringWriter sw = new StringWriter())
            {
                HtmlTextWriter tmpWriter = new HtmlTextWriter(sw);
                base.Render(tmpWriter);
                string val = sw.ToString();
                val = val.Replace(@"!= 'javascript:\'\''", @"!= 'javascript:\'\'' && false");
                writer.Write(val);
            }
        }
    }
}